﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class system_send_emailgroup : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack)
        {
        }
        else
        {
            TUser1.CheckUser(this);
            string ecrm_email = this.Session["ecrm_email"].ToString();
            if (TCommon.GetSendMailList().IndexOf(ecrm_email) != -1)
            {
                myuid.Text = this.Session["ecrm_uid"].ToString();

                //根据登录的用户来指定其上传文件的路径
                string emailfolder = ecrm_email;
                this.Session["FCKeditor:UserFilesPath"] = "/easycrm/uploadfiles/" + emailfolder + "/";
            }
            else
            {
                Response.Write("您未得到此项功能的授权！");
                Response.End();
            }
        }
    }
}
